<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="400" height="200" viewBox="0,0,400,200">
        <rect height="50" width="50" x="0" y="0" fill="red"/>

            <g transform="translate(50,50) rotate(-30) scale(2,3)">
                <rect height="50" width="50" x="0" y="0" fill="red"/>
            </g>

    </svg>
    
</body>

</html>